﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DancersDBAdmin.ascx.cs" Inherits="portfolio.Views.DancersDBViews.DancersDBAdmin1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<telerik:RadGrid ID="rgDanceData" runat="server" AllowPaging="true" PageSize="25" CellSpacing="0" CssClass="dancersDBStyle"
        GridLines="None" AllowSorting="true" OnNeedDataSource="rgDanceData_NeedDataSource" AutoGenerateColumns="false"
        AllowFilteringByColumn="true" OnItemCommand="rgDanceData_ItemCommand" OnPreRender="rgDanceData_PreRender" OnItemCreated="rgDanceData_ItemCreated"
        OnInsertCommand="rgDanceData_InsertCommand" OnUpdateCommand="rgDanceData_UpdateCommand" OnDeleteCommand="rgDanceData_DeleteCommand"
        OnItemDataBound="rgDanceData_ItemDataBound" Height="549">
        <ClientSettings>
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        </ClientSettings>
        <GroupingSettings CaseSensitive="false" />
        <PagerStyle PageSizeControlType="RadComboBox" />
        <MasterTableView IsFilterItemExpanded="true" CommandItemDisplay="Top" AllowFilteringByColumn="true" 
            InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="InPlace" DataKeyNames="SongID">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="53" />
                <telerik:GridButtonColumn HeaderStyle-Width="25" ConfirmText="Delete this song?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="160px"
                    ConfirmDialogWidth="250px">
                </telerik:GridButtonColumn>
                <telerik:GridBoundColumn DataField="SongID" HeaderText="SongID" ShowFilterIcon="false" FilterControlAltText="Filter SongID Column"
                    SortExpression="SongID" UniqueName="SongID" HeaderStyle-Width="225" Display="false" AllowFiltering="false" />

                <telerik:GridBoundColumn DataField="Song" HeaderText="Song" ShowFilterIcon="false" FilterControlAltText="Filter Song Column"
                    SortExpression="Song" UniqueName="Song" HeaderStyle-Width="225" AllowFiltering="false">
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="Artist" HeaderText="Artist" ShowFilterIcon="false" FilterControlAltText="Filter Artist Column"
                    SortExpression="Artist" UniqueName="Artist" HeaderStyle-Width="225" AllowFiltering="false">
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="BPM" HeaderText="BPM" ShowFilterIcon="false" FilterControlAltText="Filter BPM Column"
                    SortExpression="BPM" UniqueName="BPM" HeaderStyle-Width="225" AllowFiltering="false">
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="SongLength" HeaderText="Song Length" ShowFilterIcon="false" FilterControlAltText="Filter SongLength Column"
                    SortExpression="SongLength" UniqueName="SongLength" HeaderStyle-Width="225" AllowFiltering="false">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn DataField="DanceName" HeaderText="Dances" ShowFilterIcon="false" FilterControlAltText="Filter DanceName Column"
                    SortExpression="DanceName" UniqueName="DanceName" HeaderStyle-Width="225">
                    <FilterTemplate>
                        <telerik:RadComboBox ID="rcbDanceFilter" runat="server" DataValueField="DanceIdentifier" CheckBoxes="true"
                            DataTextField="DanceName" EmptyMessage="Filter By Dances" AllowCustomText="false" />
                    </FilterTemplate>
                    <ItemTemplate>
                        <asp:Literal ID="litDanceStyles" runat="server" Text='<%#Eval("DanceName") %>' />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadComboBox ID="rcbEditDanceFilter" runat="server" DataValueField="DanceIdentifier" CheckBoxes="true"
                            DataTextField="DanceName" EmptyMessage="Select Dances" AllowCustomText="false" />
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
